//
//  AboutOurViewController.m
//  XWZ_News_Work
//
//  Created by penngshi on 16/1/14.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "AboutOurViewController.h"

@interface AboutOurViewController ()

@end

@implementation AboutOurViewController

- (void)viewWillAppear:(BOOL)animated {
    
    self.navigationController.navigationBar.hidden = NO;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    
    self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:0.886 green:0.227 blue:0.255 alpha:1];
    
    UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.view.frame.size.width / 2 - 60 * KPropotionWidth, 0, 120 * SIZE, 30 * SIZE)];
    titleLabel.textAlignment = NSTextAlignmentCenter;
    titleLabel.text = @"关于我们";
    titleLabel.textColor = [UIColor whiteColor];
    titleLabel.font = [UIFont boldSystemFontOfSize:17 * SIZE];
    self.navigationItem.titleView = titleLabel;
    
    
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"icon_back@2x.png"] style:UIBarButtonItemStylePlain target:self action:@selector(backToHomePage:)];
    self.navigationItem.leftBarButtonItem.tintColor = [UIColor whiteColor];
    
    
    UILabel *introduceLabel = [[UILabel alloc] initWithFrame:CGRectMake(15 * SIZE, 100, self.view.frame.size.width - 30 * KPropotionWidth, self.view.frame.size.height / 4)];
    introduceLabel.numberOfLines = 0;
    introduceLabel.text = @"我们的团队,每一个人都很努力,多谢团队里的每一个人,都是他们的付出才有今天的成就.";
//    introduceLabel.text = @"啦啦啦啦啦了";
    introduceLabel.font = [UIFont boldSystemFontOfSize:15 * SIZE];
    [self.view addSubview:introduceLabel];
    
    
    
    
    
}

- (void)backToHomePage:(UIBarButtonItem *)barButtonItem
{
    self.tabBarController.tabBar.hidden = NO;
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
